/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bf;

/**
 *
 * @author Juan Lucas
 */
abstract public class SecurityHandler
{
    
    public static int CORRECTO=0;
    public static int USUARIO_INEXISTENTE = 1;
    public static int CLAVE_INEXISTENTE = 2;
    public static int OPERACION_INVALIDA = 3;
    public static int OPERACION_NOPERMITIDA = 4;
    
    abstract public int validate(String operacion, String usuario)
            throws bf.exceptions.SecurityException;
    
    abstract public int validarLogin(String usuario, String clave)
            throws SecurityException;
    
}
